import { createApp } from 'vue'
import App from '@/App.vue'
import '@/styles/index.scss'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
//引入自定义插件
import gloalComponent from '@/components'
//@ts-ignore
//上面代码代表ts忽略类型检测
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from './router'
import pinia from './store'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn, //国际化配置
})
app.use(pinia)
app.use(gloalComponent)
app.use(router)
import './permisstion'
app.mount('#app')
